<?php
/*
 * loader类
 * 用来为controller加在model的adapter
 * @author:liangxinzhao
 */
class Loader{
    public static function model($model_class){
        if(is_file("Model/{$model_class}.php")){
            require_once("Model/{$model_class}.php");
            $model = new $model_class();
            return $model;
        }
        else{
            return false;
        }
    }
}